﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Fileupload.aspx.vb" Inherits="Backend_Fileupload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Arwani Backend Panel</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table cellpadding="2" cellspacing="2" width="100%">
    <tr><td style="line-height:10px;"></td></tr>
    <tr>
    <td width="30%">
    Image / pdf:
    </td>
    <td>
        <asp:FileUpload ID="flupload" runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" runat="server" ErrorMessage="Select File" ValidationGroup="Val1" ControlToValidate="flupload"></asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Display="Dynamic" runat="server" ErrorMessage="Only .pdf,.jpg  are allowed."
ValidationExpression="^.*\.(jpg|JPG|pdf|PDF|JPEG|jpeg)$"
ControlToValidate="flupload" ValidationGroup="Val1">Only .pdf,.jpg  are allowed.</asp:RegularExpressionValidator>
    </td>
    </tr>
    <tr><td style="line-height:10px;"></td></tr>
    <tr>
    <td>
        <asp:Button ID="btnupload" runat="server" Text="Upload" ValidationGroup="Val1"/>
    </td>
    </tr>

    <tr>
    <td colspan="2">
        <asp:Label ForeColor="Green" ID="lblMsg" runat="server" Text="File Uploaded Successfully." Visible="false"></asp:Label>
    </td>
    </tr>
    </table>
    </div>
    </form>
</body>
</html>
